{% load i18n %}
<div class="actions input-append">
{% for field in action_form %}{% if field.label %}<label class="pull-left visible-desktop">{{ field.label }}</label>{% endif %}{{ field }}{% if field.label %}{% endif %}{% endfor %}
<button type="submit" class="btn" title="{% trans "Run the selected action" %}" name="index" value="{{ action_index|default:0 }}">
<i class="icon-play"></i>
</button>
</div>
{% if actions_selection_counter %}
    <script type="text/javascript">var _actions_icnt="{{ cl.result_list|length|default:"0" }}";</script>
    <span class="action-counter badge">{{ selection_note }}</span>
    {% comment %}
    {% if cl.result_count != cl.result_list|length %}
        <span class="all">{{ selection_note_all }}</span>
        <span class="question">
            <a href="javascript:;" title="{% trans "Click here to select the objects across all pages" %}">{% blocktrans with cl.result_count as total_count %}Select all {{ total_count }} {{ module_name }}{% endblocktrans %}</a>
        </span>
        <span class="clear"><a href="javascript:;">{% trans "Clear selection" %}</a></span>
    {% endif %}
    {% endcomment %}
{% endif %}
